class CreateYouths < ActiveRecord::Migration
	def self.up
		create_table :youths do |t|
			t.column :youth_status_id, :integer, :null => false, :default => 1
			t.column :youth_group_id, :integer, :null => false, :default => 1 
			t.column :region_id, :integer, :null => false
			t.column :institution_id, :integer
			t.column :institution_placement_date, :date
			t.column :birthdate, :date
			t.column :gender, :enum, :limit => ["Male", "Female"], :null => false
			t.column :yls_score, :integer, :null => false, :default => 0
			t.column :intake_date, :date
			t.column :comment, :text
			t.timestamps
		end
	end

	def self.down
		drop_table :youths
	end
end

